package com.haoze.nurseapp.model;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import javax.validation.constraints.NotEmpty;
import java.util.Date;

/**
 * @author yangyb
 * @date 2018/12/6
 */
@Table(name = "SYSMN.SYS_USER")
public class UserEntity {
    @Id
    @Column(name = "USER_ID")
    private String userId;

    /**
     * 数据版本
     */
    @Column(name = "DATA_VERSION")
    private String dataVersion;

    @Column(name = "GMT_CREATE")
    private Date gmtCreate;

    @Column(name = "GMT_MODIFY")
    private Date gmtModify;
    /**
     * 医疗机构
     */
    @Column(name = "HOSPITAL_ID")
    private String hospitalId;

    @Column(name = "USER_NAME")
    @NotEmpty(message = "用户名不能为空")
    private String userName;// 用户姓名

    @Column(name = "LOGIN_NAME")
    @NotEmpty(message = "账号不能为空")
    private String loginName;// 系统用户登录名

    @Column(name = "USER_PWD")
    private String userPwd;// 用户密码

    @Column(name = "PERSON_ID")
    private String personId;// 卫生服务人员

    @Column(name = "DEPT_ID")
    private String deptId;// 科室ID

    @Transient
    private String deptName;//科室名称

    @Column(name = "LOCK_FLAG")
    private String lockFlag;// 锁定标识

    @Column(name = "USER_TYPES")
    private String userTypes;// 用户类型标识

    @Column(name = "END_DATE")
    private Date endDate;// 失效日期

    @Column(name = "USER_LINE")
    private String userLine;// 在线标识

    @Column(name = "IMAGE")
    private String image;// 图像文件标识

    @Column(name = "USER_EMAIL")
    private String userEmail; //邮箱

    @Column(name = "DEL_FLAG")
    private String delFlag;//删除标识 0：未删除，1：已删除

    @Column(name = "POSITION_FLAG")
    private String positionFlag;

    @Column(name = "ENERGY_ID")
    private String energyId;

    @Column(name = "CLIENT_ID")
    private String clientId;


    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    public String getClientId() {
        return clientId;
    }

    public void setClientId(String clientId) {
        this.clientId = clientId;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getDataVersion() {
        return dataVersion;
    }

    public void setDataVersion(String dataVersion) {
        this.dataVersion = dataVersion;
    }

    public Date getGmtCreate() {
        return gmtCreate;
    }

    public void setGmtCreate(Date gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

    public Date getGmtModify() {
        return gmtModify;
    }

    public void setGmtModify(Date gmtModify) {
        this.gmtModify = gmtModify;
    }

    public String getHospitalId() {
        return hospitalId;
    }

    public void setHospitalId(String hospitalId) {
        this.hospitalId = hospitalId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getLoginName() {
        return loginName;
    }

    public void setLoginName(String loginName) {
        this.loginName = loginName;
    }

    public String getUserPwd() {
        return userPwd;
    }

    public void setUserPwd(String userPwd) {
        this.userPwd = userPwd;
    }

    public String getPersonId() {
        return personId;
    }

    public void setPersonId(String personId) {
        this.personId = personId;
    }

    public String getDeptId() {
        return deptId;
    }

    public void setDeptId(String deptId) {
        this.deptId = deptId;
    }

    public String getLockFlag() {
        return lockFlag;
    }

    public void setLockFlag(String lockFlag) {
        this.lockFlag = lockFlag;
    }

    public String getUserTypes() {
        return userTypes;
    }

    public void setUserTypes(String userTypes) {
        this.userTypes = userTypes;
    }

    public Date getEndDate() {
        return endDate;
    }

    public void setEndDate(Date endDate) {
        this.endDate = endDate;
    }

    public String getUserLine() {
        return userLine;
    }

    public void setUserLine(String userLine) {
        this.userLine = userLine;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public String getUserEmail() {
        return userEmail;
    }

    public void setUserEmail(String userEmail) {
        this.userEmail = userEmail;
    }

    public String getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    public String getPositionFlag() {
        return positionFlag;
    }

    public void setPositionFlag(String positionFlag) {
        this.positionFlag = positionFlag;
    }

    public String getEnergyId() {
        return energyId;
    }

    public void setEnergyId(String energyId) {
        this.energyId = energyId;
    }
}